package com.platform.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

import static org.springframework.http.HttpStatus.UNAUTHORIZED;

@Getter
public class TokenExpiredException extends RuntimeException {

    private Integer status = UNAUTHORIZED.value();

    public TokenExpiredException(String message) {  
        super(message);  
    }

    public TokenExpiredException(HttpStatus status, String msg){
        super(msg);
        this.status = status.value();
    }
}